package com.lorgeoux.android.parking.maps;

import android.app.Activity;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;
import com.lorgeoux.android.parking.bean.BeanInfoParking;
import com.lorgeoux.android.parking.bean.BeanInfoParkingTraite;
import com.lorgeoux.android.parking.enums.EquipementsPublicMobilite;
import com.lorgeoux.android.parking.enums.TypeParking;

public class ParkingOverlayItem extends OverlayItem {
	
	private EquipementsPublicMobilite equipementsPublicMobilite;
	private BeanInfoParking beanInfoParking;
	private TypeParking typeParking;
	private Activity activity;
	
	public ParkingOverlayItem(GeoPoint point, BeanInfoParkingTraite beanInfoParkingTraite, Activity activity) {
		super(point, beanInfoParkingTraite.getEquipementsPublicMobilite().getNomComplet(), 
				"Places libres : " + beanInfoParkingTraite.getBeanInfoParking().getPlaceDisponible());
		
		this.equipementsPublicMobilite = beanInfoParkingTraite.getEquipementsPublicMobilite();
		this.beanInfoParking = beanInfoParkingTraite.getBeanInfoParking();
		this.typeParking = beanInfoParkingTraite.getTypeParking();
		this.activity = activity;
		
	}

	public EquipementsPublicMobilite getEquipementsPublicMobilite() {
		return equipementsPublicMobilite;
	}

	public BeanInfoParking getBeanInfoParking() {
		return beanInfoParking;
	}

	public TypeParking getTypeParking() {
		return typeParking;
	}

	public Activity getActivity() {
		return activity;
	}

}
